#
# This file sets up include directories, link directories, and
# compiler settings for a project to use COINCbc.  It should not be
# included directly, but rather through the COINCbc_USE_FILE setting
# obtained from COINCbcConfig.cmake.
#
IF(COINCbc_BUILD_SETTINGS_FILE)
  INCLUDE(${CMAKE_ROOT}/Modules/CMakeImportBuildSettings.cmake)
  CMAKE_IMPORT_BUILD_SETTINGS(${COINCbc_BUILD_SETTINGS_FILE})
ENDIF(COINCbc_BUILD_SETTINGS_FILE)

# Add compiler flags needed to use COINCbc.
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${COINCbc_REQUIRED_C_FLAGS}")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${COINCbc_REQUIRED_CXX_FLAGS}")
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${COINCbc_REQUIRED_LINK_FLAGS}")
SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${COINCbc_REQUIRED_LINK_FLAGS}")
SET(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} ${COINCbc_REQUIRED_LINK_FLAGS}")

# Add include directories needed to use COINCbc.
INCLUDE_DIRECTORIES(BEFORE ${COINCbc_INCLUDE_DIRS})

# Add link directories needed to use COINCbc.
LINK_DIRECTORIES(${COINCbc_LIBRARY_DIRS})

